.class public Lcom/netease/newsreader/weibo/OAuthConstant;
.super Ljava/lang/Object;
.source "OAuthConstant.java"


# static fields
.field private static instance:Lcom/netease/newsreader/weibo/OAuthConstant;

.field private static weibo:Lweibo4android/Weibo;


# instance fields
.field private accessToken:Lweibo4android/http/AccessToken;

.field private requestToken:Lweibo4android/http/RequestToken;

.field private token:Ljava/lang/String;

.field private tokenSecret:Ljava/lang/String;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .prologue
    const/4 v0, 0x0

    .line 8
    sput-object v0, Lcom/netease/newsreader/weibo/OAuthConstant;->weibo:Lweibo4android/Weibo;

    .line 9
    sput-object v0, Lcom/netease/newsreader/weibo/OAuthConstant;->instance:Lcom/netease/newsreader/weibo/OAuthConstant;

    .line 7
    return-void
.end method

.method private constructor <init>()V
    .locals 0

    .prologue
    .line 14
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method public static declared-synchronized getInstance()Lcom/netease/newsreader/weibo/OAuthConstant;
    .locals 2

    .prologue
    .line 16
    const-class v1, Lcom/netease/newsreader/weibo/OAuthConstant;

    monitor-enter v1

    :try_start_0
    sget-object v0, Lcom/netease/newsreader/weibo/OAuthConstant;->instance:Lcom/netease/newsreader/weibo/OAuthConstant;

    if-nez v0, :cond_0

    .line 17
    new-instance v0, Lcom/netease/newsreader/weibo/OAuthConstant;

    invoke-direct {v0}, Lcom/netease/newsreader/weibo/OAuthConstant;-><init>()V

    sput-object v0, Lcom/netease/newsreader/weibo/OAuthConstant;->instance:Lcom/netease/newsreader/weibo/OAuthConstant;

    .line 18
    :cond_0
    sget-object v0, Lcom/netease/newsreader/weibo/OAuthConstant;->instance:Lcom/netease/newsreader/weibo/OAuthConstant;
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    monitor-exit v1

    return-object v0

    .line 16
    :catchall_0
    move-exception v0

    monitor-exit v1

    throw v0
.end method


# virtual methods
.method public getAccessToken()Lweibo4android/http/AccessToken;
    .locals 1

    .prologue
    .line 27
    iget-object v0, p0, Lcom/netease/newsreader/weibo/OAuthConstant;->accessToken:Lweibo4android/http/AccessToken;

    return-object v0
.end method

.method public getRequestToken()Lweibo4android/http/RequestToken;
    .locals 1

    .prologue
    .line 35
    iget-object v0, p0, Lcom/netease/newsreader/weibo/OAuthConstant;->requestToken:Lweibo4android/http/RequestToken;

    return-object v0
.end method

.method public getToken()Ljava/lang/String;
    .locals 1

    .prologue
    .line 41
    iget-object v0, p0, Lcom/netease/newsreader/weibo/OAuthConstant;->token:Ljava/lang/String;

    return-object v0
.end method

.method public getTokenSecret()Ljava/lang/String;
    .locals 1

    .prologue
    .line 47
    iget-object v0, p0, Lcom/netease/newsreader/weibo/OAuthConstant;->tokenSecret:Ljava/lang/String;

    return-object v0
.end method

.method public getWeibo()Lweibo4android/Weibo;
    .locals 1

    .prologue
    .line 21
    sget-object v0, Lcom/netease/newsreader/weibo/OAuthConstant;->weibo:Lweibo4android/Weibo;

    if-nez v0, :cond_0

    .line 22
    new-instance v0, Lweibo4android/Weibo;

    invoke-direct {v0}, Lweibo4android/Weibo;-><init>()V

    sput-object v0, Lcom/netease/newsreader/weibo/OAuthConstant;->weibo:Lweibo4android/Weibo;

    .line 23
    :cond_0
    sget-object v0, Lcom/netease/newsreader/weibo/OAuthConstant;->weibo:Lweibo4android/Weibo;

    return-object v0
.end method

.method public setAccessToken(Lweibo4android/http/AccessToken;)V
    .locals 1
    .parameter "accessToken"

    .prologue
    .line 30
    iput-object p1, p0, Lcom/netease/newsreader/weibo/OAuthConstant;->accessToken:Lweibo4android/http/AccessToken;

    .line 31
    invoke-virtual {p1}, Lweibo4android/http/AccessToken;->getToken()Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/netease/newsreader/weibo/OAuthConstant;->token:Ljava/lang/String;

    .line 32
    invoke-virtual {p1}, Lweibo4android/http/AccessToken;->getTokenSecret()Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/netease/newsreader/weibo/OAuthConstant;->tokenSecret:Ljava/lang/String;

    .line 33
    return-void
.end method

.method public setRequestToken(Lweibo4android/http/RequestToken;)V
    .locals 0
    .parameter "requestToken"

    .prologue
    .line 38
    iput-object p1, p0, Lcom/netease/newsreader/weibo/OAuthConstant;->requestToken:Lweibo4android/http/RequestToken;

    .line 39
    return-void
.end method

.method public setToken(Ljava/lang/String;)V
    .locals 0
    .parameter "token"

    .prologue
    .line 44
    iput-object p1, p0, Lcom/netease/newsreader/weibo/OAuthConstant;->token:Ljava/lang/String;

    .line 45
    return-void
.end method

.method public setTokenSecret(Ljava/lang/String;)V
    .locals 0
    .parameter "tokenSecret"

    .prologue
    .line 50
    iput-object p1, p0, Lcom/netease/newsreader/weibo/OAuthConstant;->tokenSecret:Ljava/lang/String;

    .line 51
    return-void
.end method
